home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / exploits / tests / nis / proto / include / nis_cache.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-13  |  3.0 KB  |  82 lines

  1. /*
  2.  * Please do not edit this file.
  3.  * It was generated using rpcgen.
  4.  */
  5.  
  6. #ifndef _NIS_CACHE_H_RPCGEN
  7. #define _NIS_CACHE_H_RPCGEN
  8.  
  9. #include <rpc/rpc.h>
  10.  
  11. #pragma ident    "@(#)nis_cache.x    1.8    92/07/14 SMI"
  12. #include <rpc/types.h>
  13. #include <rpcsvc/nis.h>
  14.  
  15. /* default cache file */
  16. #define CACHEFILE "/var/nis/NIS_SHARED_DIRCACHE" 
  17.  
  18. /* clients have to read-lock the cache file, and SVR4 locking requires that */
  19. /*   the file be writable, but we don't want a world-writable cache file.   */
  20. /*   So... everyone agrees to use a different, world-writable file for the  */
  21. /*   locking operations, but the data is in CACHEFILE.                      */
  22. #define CACHELOCK "/usr/tmp/.NIS_DIR_CACHELOCK"
  23.  
  24. /* the file containing one trusted XDR'ed directory object.
  25.  * This has to be present for the system to work.
  26.  */
  27. #define COLD_START_FILE "/var/nis/NIS_COLD_START"
  28.  
  29. enum pc_status {HIT, MISS, NEAR_MISS};
  30.  
  31. extern int __nis_debuglevel;
  32.  
  33.  
  34.  
  35. #define CACHEPROG ((u_long)100301)
  36. #define CACHE_VER_1 ((u_long)1)
  37.  
  38. #ifdef __cplusplus
  39. #define NIS_CACHE_ADD_ENTRY ((u_long)1)
  40. extern "C" void * nis_cache_add_entry_1(fd_result *, CLIENT *);
  41. extern "C" void * nis_cache_add_entry_1_svc(fd_result *, struct svc_req *);
  42. #define NIS_CACHE_REMOVE_ENTRY ((u_long)2)
  43. extern "C" void * nis_cache_remove_entry_1(directory_obj *, CLIENT *);
  44. extern "C" void * nis_cache_remove_entry_1_svc(directory_obj *, struct svc_req *);
  45. #define NIS_CACHE_READ_COLDSTART ((u_long)3)
  46. extern "C" void * nis_cache_read_coldstart_1(void *, CLIENT *);
  47. extern "C" void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *);
  48. #define NIS_CACHE_REFRESH_ENTRY ((u_long)4)
  49. extern "C" void * nis_cache_refresh_entry_1(char **, CLIENT *);
  50. extern "C" void * nis_cache_refresh_entry_1_svc(char **, struct svc_req *);
  51.  
  52. #elif __STDC__
  53. #define NIS_CACHE_ADD_ENTRY ((u_long)1)
  54. extern  void * nis_cache_add_entry_1(fd_result *, CLIENT *);
  55. extern  void * nis_cache_add_entry_1_svc(fd_result *, struct svc_req *);
  56. #define NIS_CACHE_REMOVE_ENTRY ((u_long)2)
  57. extern  void * nis_cache_remove_entry_1(directory_obj *, CLIENT *);
  58. extern  void * nis_cache_remove_entry_1_svc(directory_obj *, struct svc_req *);
  59. #define NIS_CACHE_READ_COLDSTART ((u_long)3)
  60. extern  void * nis_cache_read_coldstart_1(void *, CLIENT *);
  61. extern  void * nis_cache_read_coldstart_1_svc(void *, struct svc_req *);
  62. #define NIS_CACHE_REFRESH_ENTRY ((u_long)4)
  63. extern  void * nis_cache_refresh_entry_1(char **, CLIENT *);
  64. extern  void * nis_cache_refresh_entry_1_svc(char **, struct svc_req *);
  65.  
  66. #else /* Old Style C */ 
  67. #define NIS_CACHE_ADD_ENTRY ((u_long)1)
  68. extern  void * nis_cache_add_entry_1();
  69. extern  void * nis_cache_add_entry_1_svc();
  70. #define NIS_CACHE_REMOVE_ENTRY ((u_long)2)
  71. extern  void * nis_cache_remove_entry_1();
  72. extern  void * nis_cache_remove_entry_1_svc();
  73. #define NIS_CACHE_READ_COLDSTART ((u_long)3)
  74. extern  void * nis_cache_read_coldstart_1();
  75. extern  void * nis_cache_read_coldstart_1_svc();
  76. #define NIS_CACHE_REFRESH_ENTRY ((u_long)4)
  77. extern  void * nis_cache_refresh_entry_1();
  78. extern  void * nis_cache_refresh_entry_1_svc();
  79. #endif /* Old Style C */ 
  80.  
  81. #endif /* !_NIS_CACHE_H_RPCGEN */
  82.